#include "pjapiuaaccountcallback.h"

PjApiUaAccountCallback::PjApiUaAccountCallback(PjApiUaAccountHandler *handler)
{
    if(handler != NULL)
    {
        m_accountHandler = handler;
    }
}

PjApiUaAccountCallback::~PjApiUaAccountCallback()
{
}

void PjApiUaAccountCallback::onIncomingCall(int account_id, int call_id, void* data)
{
    PJ_LOG(3, ("Callback","An Incoming call!"));
}

void PjApiUaAccountCallback::onInfoRequest(int session_id,
                                        std::string request_name,
                                        std::string content_type,
                                        unsigned long long content_length,
                                        void *data)
{
    //printf("Request mesage received!++++++++++++:\n request_name: %s \n content_type %s \n data: %s",
    //                request_name.c_str(), content_type.c_str(),(char*)data );
}

void PjApiUaAccountCallback::onStatlessRequestReceived(std::string from,
                                                    std::string request_name,
                                                    std::string content_type,
                                                    unsigned long long content_length,
                                                    void *data)
{
}

void PjApiUaAccountCallback::onInfoResponse(int session_id,
                                        std::string response_name,
                                        std::string content_type,
                                        unsigned long long content_length,
                                        void *data)
{
}

void PjApiUaAccountCallback::onIMMessage(int call_id,
                            const std::string from,
                            const std::string to,
                            const std::string contact,
                            const std::string mime_type,
                            const std::string body)
{
}

void PjApiUaAccountCallback::onIMTyping(int call_id, std::string from, std::string to, std::string contact, bool isTyping)
{
}
